added some demo codes