excercise_6 revised