adding function to append cells to the ends of lists
fill out addToEnd