added some solutions for exercise 6