My master's thesis code