updated sample code in README.md