end of chapter 8, still getting weird errors