add notes on loops, including nested loops, + code examples