package seedu.tasklist.model;

import seedu.tasklist.model.task.Task;

//@author A0139747N
/**
 * Creates a Pair object which will be used for undo/redo command.
 */
public class Pair {
    private ReadOnlyTaskList first;
    private Task second;

    public Pair(ReadOnlyTaskList first) {
        this.first = first;
        this.second = null;
    }

    public Pair(ReadOnlyTaskList first, Task second) {
        this.first = first;
        this.second = second;
    }

    public ReadOnlyTaskList getFirst() {
        return first;
    }

    public Task getSecond() {
        return second;
    }

    public boolean isNullTask() {
        if (second == null) {
            return true;
        } else {
            return false;
        }
    }
}

@@ -28,48 +28,8 @@
 l;%0A%0A
-import seedu.tasklist.model.task.Task;%0A%0A
 //@a
@@ -168,19 +168,18 @@
 askList 
-fir
+li
 st;%0A    
@@ -190,125 +190,26 @@
 ate 
-Task second;%0A%0A    public Pair(ReadOnlyTaskList first) %7B%0A        this.first = first;%0A        this.second = null;%0A    %7D
+String userInput;%0A
 %0A%0A  
@@ -243,26 +243,30 @@
 ist 
-fir
+li
 st, 
-Task second
+String userInput
 ) %7B%0A
@@ -282,19 +282,17 @@
 his.
-fir
+li
 st = 
-fir
+li
 st;%0A
@@ -308,23 +308,29 @@
 his.
+u
 se
-cond
+rInput
  = 
+u
 se
-cond
+rInput
 ;%0A  
@@ -369,11 +369,10 @@
  get
-Fir
+Li
 st()
@@ -393,11 +393,10 @@
 urn 
-fir
+li
 st;%0A
@@ -417,117 +417,28 @@
 lic 
-Task getSecond() %7B%0A        return second;%0A    %7D%0A%0A    public boolean isNullTask() %7B%0A        if (second == null
+String getUserInput(
 ) %7B%0A
@@ -449,82 +449,31 @@
     
-  
-  
 return 
-true;%0A        %7D else %7B%0A            return false;%0A    
+userInput;%0A
     %7D%0A
-    %7D
 %0A%7D%0A

Change Pair implementation to store ReadOnlyTaskList and the user's input