Adding script for higher order histograms