Create object_factory.cpp