Completed chapter 4 problems