function insert(arr, item, index) {
    let newArr = arr.concat();
    newArr.splice(index,0,item);
    return newArr;    
}