An example of how to use Loops and Functions