more example code added in example app