creating hashmap and displaying