added notes on anonymous functions