solved problem 5
solved problem 5