#include <iostream>
#include <string>
#include "MyMap.h"
using namespace std;

int main()
{ 
  // Create a map
  MyMap<string, int> map;
  map.put("Smith", 30);
  map.put("Anderson", 31);
  map.put("Lewis", 29);
  map.put("Cook", 29);
  map.put("Smith", 65);

  cout << "Entries in map: " << map.toString() << endl;
  cout << "The age for " << "Lewis is " <<
    map.get("Lewis") << endl;
  cout << "Is Smith in the map? " <<
    (map.containsKey("Smith") ? "true" : "false") << endl;
  cout << "Is age 33 in the map? " << 
    (map.containsValue(33) ? "true" : "false") << endl;

  map.remove("Smith");
  cout << "Entries in map: " << map.toString() << endl;

  map.clear();
  cout << "Entries in map: " << map.toString() << endl;

  return 0;
}