Implemented the map