add code examples to README.md