completed excercise 6.5