solutions to lab 2