exercise 2.4 completed