Sample codes I used for blogging