Update calc.cpp

addition function included