added sample method