Implemented and tested the Map class.