write a demo program