adding methods for dynamic arrays (in process)
refactor (prepare for dynamic array methods)