refactoring doctests for strategy example