Exercise session 5 solutions.pdf