some demo codes in C, just store here