Add example code snippet to README.md