Master Thesis code