added functions in example app