Copied the data into a matrix classes