- updated helloworld example to use new 1.x API

The other examples use the new API, but helloworld didn't.