Update example app to use new API