More Week 2 lecture notes on functions and looping