Further initial work of line tool (still not working)