Completed exercise 1.
Completed exercise 2.
Completed exercise 3.
Completed exercise 4.