solved problem2