forgot factory.h

Template code for class factories