passed all test cases on Enumeration