Move fedorov to C++