Tutorial 2 solutions