Functional programming - Setting up data as flowing through functions