functional programming | ScratchStats