solved exercises for chapter 9