Modernize example code in README.