added code of demo app