Proper class initalization generation