The code for my thesis project