Implemented getMaterialsFromBuilding method.