implement sample