writing the demo