Ex3 solutions