Code for chapter 03 of Meteor in Action