The code for my thesis!