Code from C - Learn the hard way