Exercise 1 from first semester