Added solution to Exercise 1.9.