Sample code for tutorials in http://codehappily.wordpress.com/