add a demo code snippet