finished chapter 6 self-test