update the building class