Trouble with Meal Maker

Not sure what i did wrong but the compiler returned an error.

const menu = {
 _courses:{
  appetizers:[],
  mains:[],
  desserts:[]
 },
  get appetizers(){
    
  },
  get mains(){
    
  },
  get desserts(){
    
  },
  set appetizers(appetizersIn){
    
  },
  set mains(mainsIn){
    
  },
  set desserts(dessertsIn){
    
  },
  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]
  },
  randomDishFromCourse(courseName){
   const dishes = this._courses[courseName];
  const randomIndex = Math.floor(Math.random() * dishes.length);
    return dishes[randomIndex]
  },
  generateRandomMeal: function(){
    let appetizer = this.getRandomCourse('appetizers')
    let main = this.getRandomCourse('mains')
    let dessert = this.getRandomCourse('desserts')
    const totalPrice = appetizer.price + main.price+dessert.price 
  }
};
menu.addDishToCourse('appetizers','chips',2.00)
menu.addDishToCourse('appetizers','bread',2.50)
menu.addDishToCourse('appetizers','chicken wings',4.00)
menu.addDishToCourse('mains','chicken sandwich',8.00)
menu.addDishToCourse('mains','hamburger',7.50)
menu.addDishToCourse('mains','nachos',16.00)
menu.addDishToCourse('desserts','cake',3.00)
menu.addDishToCourse('desserts','icecream',2.25)
menu.addDishToCourse('desserts','dounut',1.25)
let meal = menu.generateRandomMeal()
console.log(meal)

it doesn’t seem like there is a function called getRandomCourse… Is this all your code?

This is my entire code. The compiler says that the dish variable that I called in the push method is undefined. I’ll have to change getRandomCourse to addDishToCourse.