Using C++11 loops