Create factory.h