Array Ruby

squares = Array.new(5) {|i| i*i}
copy = Array.new(squares) # initialized by copying
p squares[5] = 25