Update Factory.cpp