Update example to use object params