histogram sample

remade c dave williams histogram sample