Almost port the HelloWorld example.