Improve Lines example by cleaning up the code and make it run a little less hot.