adding question 6 to chapter 5 homework