solution to lab 1