Solve exercise 2 from section 4.7.
This assignment is
Level 1
.