changing return type from String to Vector<Task>