Cleanup example2.cpp.