- extracted a weightCalculator