Added solutions for exercise 5