main.cpp is extended