Worked on a bit of the chapter5 homework

Completed part of the chapter 5 homework.