This would dramatically simplify the `histogram()` method... and reduce code deduplication... so that would be a very good solution... and make the whole thing a lot simpler...