sample application to do transaction