main example

main.cpp example