Problem 4 solved.
Problem 5 solved.