Partial solutions for chapter 5