How to use hashmaps to store things