updated chapter 6 exercises