class Test: a = 5 def method(self, b): def func(c): y = self.a + b * c return y