Here is the line drawing code I promised

Code: