Fixed exercises for chapter 7