Update examples to new API

This fixes #18.