changed __init__.py to import Factor class directly