Need to add the function argument back to collate_data function so that it could apply the function after reading a file
Need to add the function argument back to collate_data function so that it could apply the function after reading a file