Update calc.cpp

added a new add method