changes to practice_arrays.rb based on rubocop