finished the notes on functions