Code to accompany the tutorial in Smashing Magazine