class generation via code model