Code for my work term with the CNRG