added solution to Exercise 1;
added solution to Exercise 2;