Lab-2 solutions