solution for hash exercise 4