class Foo:
   x = 1

   def fun1 (self):
      print ("fun1")

   def fun2 (self):
     print ("fun2")
     self.fun1()

   def fun3 (self):
     x = 2
     print("Local x:", x)
     print("Attribute x:", self.x)


