Created HW4 from HW3
Converting to linked list buffer