class Animal:
    def __init__(self, name, age):
        self.name = name
        self.age = age
        
    def make_sound(self):
        print("The animal makes a sound.")
        
class Dog(Animal):
    def __init__(self, name, age, breed):
        super().__init__(name, age)
        self.breed = breed
        
    def make_sound(self):
        print("The dog barks.")
        
dog1 = Dog("Buddy", 3, "Labrador")
print(dog1.name)   # prints "Buddy"
dog1.make_sound()  # prints "The dog barks."