Update example in README.md to latest API.