Added solution to Exercise 1.29.