updated example code in README.md