Filling and manupulation with histograms