created a parseSpreadsheet function.