Using linked lists with pointers.