Implemented the demo