study foreach