Implemented a Map class