add a first version of a 'main.cpp' script writer