finish L5 PROBLEM 3.