passed all test cases on Generics Related