Implemented the MapIterator