Problem #1 solution.
Problem #2 solution.
Problem #3 solution.
Problem #4 solution.
Problem #7 solution.