Code for tutorials posted on my blog.