add notes on higher order functions