examples of different ways to use loops.