Solve Exercise 3.20