Improving the histogram methods declaration