Update example to use updated interface