finished rough version of chapter 8