Creating functions to do the work of list methods