histogram added (p.5)