adds latest version of CodeGen.c to prog3