Update README example for latest API changes