Exercise session 3 solutions.pdf