modify sample code.
Merge pull request #2 from ko1/master

update sample code