Pointers

trying to remove the malloc when I only really require pointers for
some of the operations