added challenge 2 code to cycle through the hash