Code for Bachelor Thesis