created main.cpp for SWIG example