Added solved problem 3