a dump of my c code as I teach it to myself