Initial commit: code draws lines sequentially.