problem 5 solved.
problem 6 solved.
problem 7 solved.