added a little more to the implementation of spreadsheet