Solve exercise 4
Solve exercise 5
Solve exercise 6