exercise 3.7