added weights example