Exercise session 4 solutions.pdf