Working version of the Line (EX9) with th ability to draw the closed lines.