Update calc.cpp

addition method added