The sample code for the blog post http://wp.me/p4ZBiU-D