exercise 3.7 done