Fix pushing data to CSV file

Hard code the part to put each information into a respective array index
before writing the information to the CSV file.