experimenting with hegher order functions and currying