add for_each.cpp