introduced the use of the c++11 foreach loop