Committing exercise 1 from chapter 9.