Added a for loop and forEach loop to list all the array elements