I have a pre made class [**Msg**] with methods [**.show()** and **.retrieve()**]. The method '.show()' displays a message to the browser as the last list item in an unordered list. The method '.retrieve()' gets a finite amount of messages from a server. It takes a callback method as its only parameter. It will pass an array of strings. Each string in the array contains one message. I have the following code: 

**JS:**

```
 Msg.retrieve(function(array) {
      for (var i = 0; i < array.length; i++) {
           Msg.show(array[i]); 
      }
 });

 // The code outputs all the messages to the screen at once as a bunch of list items. 

```

*How do I output one message every five seconds?* I am unsure on how to use the setInterval() method Javascript has.

Any help is greatly appreciated. Thanks!