Creating a hashmap and making use of the hashmap within the code