Update example code in README.