Added an example of a weighting scheme that requires statistics .
Corrected indentation and a typo in the code.
Merge pull request #3 from aarshkshah1992/new_weight

Added an example of a weighting scheme that requires statistics .