added class generator.