Calculator.cpp with add method