forced input data to be an object with the functions getCell and getNumRows