put spreadsheet stuff into separate class