foreach excercise