Update examples to 0.3.0 API.