Connect endpoints lines