Finished the update function in the Table class