Combined two loops
Reordered the loop
Reordered the loop
Renamed clines to alines
Reordered the loop
Separated plines.ions to ilines