Removed histogramx and histogramy objects. updated NB for clarity.