Add elem at the end of list, but segfault when try to show this one, have to fixe it