add generator class (table model controller)