solution to lab3