Move and operation to C++ classes