Refactoring with Loops and Collection Pipelines: Grouping flight records | Hacker News Reader