align C++ and SWIG interface for class Exercise