Add struct factoryobject