added delete method. tests pass