changing sample to samples, adding delete to client code