map: replace , keySet and values methods are implemented