Changed the example app to fit preferred approach in new programming guides.