new exercise using a HashMap and more object manipulation