Excercise 5 and 7 from set 1