add main.cpp as an example.