Update mainTerm.cpp