add license to main.cpp