Some code for my MSc