using 10 bins generates a perfect output for the example!