Implemented example weighting