Code for chapter 07 of Meteor in Action