cleaned up arrays.rb