Solve Exercise 3.11