init the demo code