Update factory class