update the example to these new methods.