simplified excercise 1 b)