added the sample method