Code for fun with C