Code for disertation