Add solution to ex 7