Adding macro to create shape histograms