implement sample mocking