an example main.cpp, show how to use the class