adds new functions to sample app