New ObjectFactory class