Added and solved problem 6