Added code to reverse a tuple.