simplified example app code