Solve Exercise 3.4