added code sample to README