finished excercise 3.5:2