sample codes for blogging