# uses a range to change elements 5 through 7. months = %w[ nil January February March April May June July August September October November December ] months[5..7] = "Mai", "Juni", "Juli"