Update calc.cpp

Added add method