Solve Exercise 4.2