updates from chapter 8 exercises