Solved exercise 3.4
Solved exercise 3.5
Solved exercise 3.6