ls: group similar examples together