Add histogram() method