Update example.cpp.