added a list function and changed the add and delete