Added demo code to chat example