Exercise 1 for vettig14 course at KTH