Add solution to ex 1