improve the example to show more typical use cases