updated code example in README.md