solution to lab 2