add previous wdi lecture notes on functions