from graphics import *

class Face:

```
def __init__(self, win, center, size):
eyeSize = 0.15 * size
eyeOff = size / 3.0
mouthSize = 0.8 * size
mouthOff = size / 2.0
self.head = Circle(center, size)
self.head.draw(win)
self.leftEye = Circle(center, eyeSize)
self.leftEye.move(-eyeOff, -eyeOff)
self.rightEye = Circle(center, eyeSize)
self.rightEye.move(eyeOff, -eyeOff)
self.leftEye.draw(win)
self.rightEye.draw(win)
p1 = center.clone()
p1.move(-mouthSize/2, mouthOff)
p2 = center.clone()
p2.move(mouthSize/2, mouthOff)
self.mouth = Line(p1,p2)
self.mouth.draw(win)
self.parts = [self.head, self.leftEye, self.rightEye, p1, p2, self.mouth]
def ReturnCenter(self):
return self.head.center
def move(self, dx, dy):
for part in self.parts:
part.move(dx,dy)
```

def main():

```
win = GraphWin("Animação Cara", 500, 500)
win.setBackground("peachpuff")
win.setCoords(100, 100, -100, -100)
face = Face(win, Point(0,0), 15)
dx = 0.5
dy = 0.5
for i in range(10000):
c = face.ReturnCenter()
if c.getX() > 85:
dx = -0.5
elif c.getX() < -85:
dx = 0.5
elif c.getY() > 85:
dy = -0.5
elif c.getY() < -85:
dy = 0.5
face.move(dx,dy)
update(50)
```

main()

Can you please help me with the following error?

File “(…)”, line 34, in ReturnCenter

return self.head.center

AttributeError: ‘Circle’ object has no attribute ‘center’