adding excercise 2 & 3