Update example to use convenience syntax.