Completed exercise 3.
Completed exercise 4
Completed exercise 5
Completed exercise 6.