Annotates code for chapter 6