move the demo into example