enumerated type uses map, mapping class