excercise 3 solved