added a delete functionality. tests pass