Beginning of excercise 3