Used the second parameter of the range command to access the element on an array