Creates an array from the data