For loops and function examples from class.