my solution to lab3 challenge 1