example main.cpp, to generalize from in other projects