my solution to lab4