exercise that creates tuples from a dictionary