I am creating a new class that takes three attributes: term (a str representing course term), grades (a list of tuples), and num\_courses (an int representing number of courses)
grades has to be initialized as an empty list and num\_courses as 0. Whenever I run my code with other methods I get an error saying 'AttributeError: type object 'GradeRecords' has no attribute 'grades'. I think my constructor is wrong, but I don't know why. Thank you in advance!

```
class GradeRecords:
    """represents a grade for a class
    Instance Attributes: term (str), grades (list of tuples),
    num_courses (int)
    """

    def __init__(self, term, new_tuple()):
        self.term = term

        #create a list from the input new_tuple
        self.grades = []
        GradeRecords.grades.append(new_tuple)

        self.num_courses = 0
        GradeRecords.num_courses += len(self.grades)

```