Adding the solution of exercise 2 from week0