added some demo code