Solution to chapter 7 prob 9.
Add a new problem to ch. 7.