class for factor