Added solutions for Exercise 6