fix example codes
Merge pull request #2 from poying/master

fix example codes