Array: added the elements() function