Code for the example done with discover Meteor book.