Creating a linked list data structure that works similar to an ArrayList. School assignment