Finish problem 5 of set 3