Code for chapter 02 of Meteor in Action