completed the sample app