Parsing inputs and populating the fruit list