Complete solutions for chapter 3