Complete 'Hashes' exercise 4