Update calc.cpp

Added square() method