Finished updateTable() method