sample Codes in C