lines are saved in a linked list