Completed exercise 7
Completed exercise 8
Completed exercise 9
Wrote exercise 10. All but 2 tests pass.