repaired assert imports for factory and factory method
added multiton pattern