implemented createBins