Companion code for tutorial on meancast.com