1. change CCARRAY_FOREACH to range-based loop