Sample code used to illustrate my blog articles