I have been also wondering about this; I got to the solution without using setters, and then modified it in order to get the results using them. I came up with the following:

```
_courses: {
appetizers: [],
mains: [],
desserts: []
},
get appetizers() {
return this._courses.appetizers;
},
set appetizers(newAppetizer) {
this.appetizers = newAppetizer;
},
get mains() {
return this._courses.mains;
},
set mains(newMain) {
this.mains = newMain;
},
get desserts() {
return this._courses.desserts;
},
set desserts(newDessert) {
this.desserts = newDessert
},
get courses () {
return {
appetizers: this.appetizers,
mains: this.mains,
desserts: this.desserts
}
},
addDishToCourse (courseName, dishName, dishPrice) {
const dish = {
name: dishName,
price: dishPrice
}
this.courses[courseName].push(dish);
},
getRandomDishFromCourse (courseName) {
const dishes = this._courses[courseName];
const randomIndex = Math.floor(Math.random()*dishes.length);
return dishes[randomIndex];
},
generateRandomMeal () {
const appetizer = this.getRandomDishFromCourse('appetizers');
const main = this.getRandomDishFromCourse('mains');
const dessert = this.getRandomDishFromCourse('desserts');
const totalPrice = appetizer.price + main.price + dessert.price;
return `Your meal consists of \n${appetizer.name}\n${main.name}\n${dessert.name}\nThe total price of your meal is $${totalPrice}`;
}
};
menu.addDishToCourse('appetizers', 'Nachos', 6);
menu.addDishToCourse('appetizers', 'Fried Pickles', 7);
menu.addDishToCourse('appetizers', 'Tomato Soup', 6);
menu.addDishToCourse('mains', 'Rib Eye Steak', 18);
menu.addDishToCourse('mains', 'Pepperoni Pizza', 18);
menu.addDishToCourse('mains', 'Chicken Sandwich', 12);
menu.addDishToCourse('desserts', 'Chocolate Ice Cream', 4);
menu.addDishToCourse('desserts', 'Flan', 5);
menu.addDishToCourse('desserts', 'Carrot Cake Slice', 6);
const meal = menu.generateRandomMeal();
console.log(meal);
```

I am getting the results, but I am not sure if I am doing it as expected. Please take a look at it and let me know what you see. Thanks