create logic and add functionality for sample app