Completed problem 4.
Completed problem 5.
Completed problem 6.