def delete(record)
      load
      raise InvalidRecord, "#{record.class} does not have a valid :id!" if record.id.empty?
      @collection.delete record
    end
def delete(record)
      load
      raise InvalidRecord, "#{record.class} does not have a valid :id!" if record.id.empty?
      @collection.delete record
    end
Removes a record from the collection, uses the id of the record as a test for inclusion.