#include <iostream>
#include "LList.2.h"
using namespace std;

int main(){
    int count = 0;

    LList list, jane, tom, spot;
    LList * list2 = new LList();

    cout << "Yo, enter data: ";
    int input = 0; //initialize so it enters loop
    
    cin >> input;
    while(input != -1){
	list.insert(input);
	count++;
	list.printLL();
	cin >> input;
    }

    while(count > 0){
	list.deleteFromFront();
	list.printLL();
	count--;
    }
 
    return 0;
}

