void LinkedList::addElement(int newNodeData) { Node newNode(newNodeData); (*lastElement()).changeNextNode(&newNode); }