add lecture notes on functions