Add method that splits records into groups.
Make example clearer.