Created function within fruits variable

Created function within fruits variable