Code for the tutorial on the blog post of http://doctorllama.wordpress.com