Change the data type of class Bar to Enum
call the Enum class