made edits. added functionality to insert elements into table.