Sample app code