add some implementation to class histogram