Add code sample to README.md.