added name field and function to add items to the table