some C code for fun