Solve excercise 2