solved problem 122!