created fruits array and used a foreach loop to display the names