bootstraping the histogram chart, trying to simplify the exampels