finished excercise 2.6