finished corpus calculator and table