class simpleCalc: def add(a, b): print self.a + self.b def minus(a, b): print self.a - self.b calc = simpleCalc() calc.add(1, 2)