Created generator.
Added basic functionality to the generator class.