Implement method to show contents of the list.