reworking example app and testing