test modified
computeTable takes generator as input