add example code to README.md