no longer having problem shape. Matrix for x and y, passing in [x[i]], y[i]