Did Excercise 5 from the tutorial