Create example.cpp

Example program.