Problem 5 solved.
Problem 6 solved.
Problem 7 solved.
Problem 8 solved.
Problem 9 solved.