codes and stuff related to the master's thesis