Change 'for each' to 'forEach'.
Fix example.