Added undo method in Command and added method to undo commands in TaskList