Add main.cpp to example