update code sample in README