change Ternary.elementFraction from classmethod to classinstancemethod