broken attempt to do ex1-5

tried to do hashmaps, but need an ordered map.