Convert list to table