The solution of Exercise 1
The solution of Exercise 2
The solution of Exercise 3