Foreach example