Update WeightCalculator.c