Corrected moving along the line example for trik