package seedu.taskboss.logic;

import java.util.logging.Logger;

import javafx.collections.ObservableList;
import seedu.taskboss.commons.core.ComponentManager;
import seedu.taskboss.commons.core.LogsCenter;
import seedu.taskboss.commons.exceptions.IllegalValueException;
import seedu.taskboss.logic.commands.Command;
import seedu.taskboss.logic.commands.CommandResult;
import seedu.taskboss.logic.commands.exceptions.CommandException;
import seedu.taskboss.logic.parser.Parser;
import seedu.taskboss.model.Model;
import seedu.taskboss.model.task.ReadOnlyTask;
import seedu.taskboss.storage.Storage;

/**
 * The main LogicManager of the app.
 */
public class LogicManager extends ComponentManager implements Logic {
    private final Logger logger = LogsCenter.getLogger(LogicManager.class);

    private final Model model;
    private final Parser parser;

    public LogicManager(Model model, Storage storage) {
        this.model = model;
        this.parser = new Parser();
    }

    @Override
    public CommandResult execute(String commandText) throws CommandException, IllegalValueException {
        logger.info("----------------[USER COMMAND][" + commandText + "]");
        Command command = parser.parseCommand(commandText);
        command.setData(model);
        return command.execute();
    }

    @Override
    public ObservableList<ReadOnlyTask> getFilteredTaskList() {
        return model.getFilteredTaskList();
    }
}

@@ -849,16 +849,55 @@
 parser;%0A
+    private final Storage storage;%0A    
 %0A    pub
@@ -969,24 +969,55 @@
 el = model;%0A
+        this.storage= storage;%0A
         this
@@ -1331,16 +1331,53 @@
 model);%0A
+        command.setStorage(storage);%0A
         

Update LogicManager.java