End to end implementation for the demo