chapter 9: finished up changes