added the demo code