generating class typedef