added scripts for plotting the histogram