Added Exercises 6 and 8