Working with different array methods