updated sample app.