moved files
c++ implementation