completed array_practice.rb program