Solve Exercise 3.27