text: class Student:
    def __init__(self, name, age, grade):
      self.name = name
      self.age = age
      self.grade = grade # 0 - 100
    
    def get_grade(self):
      return self.grade
  
  class Course:
    def __init__(self, name, max_students):
      self.name = name
      self.max_students = max_students
      self.students = []
    
    def add_student(self, student):
      if len(self.students) < self.max_students:
        self.students.append(student)
        return True
      return False
    
    def get_average_grade(self):
      value = 0
      for student in self.students:
        value += student.get_grade()
      return value / len(self.students)
  
  s1 = Student("Marina", 20, 99)
  s2 = Student("Fer", 20, 44)
  s3 = Student("Ka", 20, 70)
  
  course = Course("Science", 2)
  course.add_student(s1)
  course.add_student(s2)
  course.add_student(s3) # return false
  print(course.students[0].name)
  print(course.get_average_grade())
  