allow use of alternate Factory that implements FactoryInterface.
Merge pull request #27 from adrx/alternate-periods2

allow use of alternate Factory that implements FactoryInterface.