Sample codes for my blog (http://hrchen.com)