Added solutions for exercise 1 till 3.