Added source code for example in README.md