add generator class

move the ground platform to a class