class generation via text editing