Solved Exercise 1.