Refactor Rx sample code in README.md