refactored tutorial about mocks