Update README.md

updated the example code to match the current implementation