updated excercise 2