cleanup chapter 6 examples