new version of all the code into a pdf