Trying to implement the list function.