Added code sample to readme.md