finished doTabulationMethod