extract all functions in "pan_cart" to the new file "polish.R";
change the name of "pan_cart" to "polish_cart";
add the algorithm of measuring the (dis)similarity of the contiguous lines.