Move add operation to C++ classes