Update factory.h