updated SampleHashMap class in the package collectionframework