Implemented weight, chars and times function. Updated test cases.