implemented foreach.
Merge pull request #2 from fusonic/foreach

implemented foreach. (each)