Added code example in README.md.