finished content of chapter 7, working on exercises