practice exercises for forreach