Complete example code

The example code should show at least one usage of each aspect of the
API.