Added a new method to the Map class
Made use of the new method of the Map class