Adds the generator class.