add Main.cpp inherent class