back_and_forth_movement.cpp updated but not tested