implemented a HashMap -MCM