Functional programming
Merge pull request #414 from lindbrook/patch-1

Functional programming