finished the sample app