Added and solved problem 3