Finish homework from chapter 5