Mandatory energy code for residential buildings in the works