Worked on the getHashMap method.