Update example with API changes