solved problem 1