adds __mul__ method to Factor class
adds __eq__ method to Factor class