Implemented historgram.