coding exercise for learn C the hard way