Create example_adaptive.cpp