Updated SampleApp.java