Example code for the on click tutorial on my blog