Completed chapter 5 solutions