Parse data and format data from all three files in array structure