Add dynamic histogram class.