First pass at a histogram code.