Added initial C code