added a new delete method to the class