update code example in README.md