problem 3 finished