Committing exercise 2 from chapter 8.