Add solutin for exercise 3