UserDefinedType again, now with class generation