write Distributive method for product func