Adding total line to table