exercise 4.2 completed