Added the solution to exercise 1-2