added first draft for histogram