Modified for responses to exercises 1 & 2 in chapter 7