Solved exercise 3.1
Solved exercise 3.2