Implemented weight() and chars()