Committing first part of exercise 11 from chapter 7.