public static Task[] append(Task[] array, Task task){
        Task[] newArray = new Task[array.length+1];
        for(int i=0; i<array.length; i++){
            newArray[i] = array[i];
        }
        newArray[array.length] = task;
        return newArray;
    }