snippet: foreach