Sample code for C