Completed problem 6
Completed problem 7
Completed problem 9
Completed problem 8