keep working on generating building using factory