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