Code to go along with the eBook from http://featurize.us/.