Removed foreach loop to make example simpler