Updated the hello-world example to use the new API.