Create an alternative version of exercise 3, using two tuples