Implemented Map class