passed all test cases on Enums