updated Day6.rb