**from turtle import ***
class Ourturtle():
def init(self):
self.tt = Turtle()
def shape(self,x):
self.tt.shape(x);
class Car(Ourturtle):
def go(self,x):
for i in range(x):
self.tt.left(90)
self.tt.forward(100)
for i in range(4-x):
self.tt.left(90)
def move(self,x):
if x == up:
self.go(1)
elif x == down: