Solve Exercise 3.19