Completed exercise 4
Slight modification
Completed exercise 5
Completed exercise 1
Completed exercise 2