solution for hashes exercise 1