Used the list method to pass data to the view, which we're displaying.