Solved chapter 17 exercises