Added Part 3, segmenting data to buckets.