problem 5 solved: