Changed the Factor constructor to allow instantiation with a single variable instead of a list