completed excercise 5.6