added sample code to README.md