Trying a linkedlist instead