Annotates chapter 8 code