sample application code