Code for chapter 08 of Meteor in Action