Solved chapter 16 exercises