client/Sample: update code