example for moving along the line