Code written as part of my Bachelors and Masters degrees