an example of creating a hash and iterating over the key,values