convert enums into classes