First implementation of histogramme: not working