Added a simple Active example to foreach