Solve Exercise 3.6