Added sample app code