Adding some more code to sample app.