my solution to lab2