my solution to lab1