Update weight_class.php

Make it class extension friendly, especially for method addWeightClass