Update calc.cpp

using branch Anjali