main sample app of tutorial