Added histogram drawing