Initial version of example_3.cpp