class Horse():
    def __init__(self, name, owner):
        self.name = name
        self.owner = rider
class Rider():
    def __init__(self, name):
        self.name = name
h1 = Horse('Mick', r1)
r1 = Rider('Dima')
print(h1.owner.name)
