Added a more interesting example in main.cpp