finished problem 122