Adding the second method to create a new array.