Used Generics in map