Functional programming, first chapter - collections