Update calc.cpp

added new add method