Update calc.cpp

Included add function.