code for my phd