Update toandfro.cpp