add C++11 version of examples