Fixed bindings in chapter 7 code