Implement add with an element or array of elements.
Finish the add method implementation.