update codesample in readme