update exercise 6