exercise 1-13, added an approx histogram for the digits