Solve exercise 7
Solve exercise 8