Code for my Bachelor's thesis