My master thesis. The code.