Source code from my master’s thesis