added first version of histogram