Able to parse data into y, i and x_i.