Added updated exercise 6