refactor fruits.rb