First iteration of dynamic class generation