add notes on building a function