#app.py / main.py

class Car():
    def __init__(self, make, model):
        self.make = make
        self.model = model

    def __rerp__(self):
        return f'<Car {self.make} {self.model}>'


class Garage:
    def __init__(self):
        self.cars = []
    
    def __len__(self):
        return len(self.cars)
    
    def add_cars(self, car):
        #1#print("TBD")
        if not isinstance(car, Car):
            raise TypeError(f'Tried to add a {car.__class__.__name__} to the garage, but you can only add Car objects.')
        #raise NotImplementedError('We cant add cars yet')
        self.cars.append(car)

ford = Garage()
ford.add_cars(Car('ford','Fiesta'))
print(len(ford))