When you define a method you need to add an extra paramater before your arguments, which will refer to that class instance itself. In Python this is called self, though technically you can use any name you want. But its a good idea to follow the standards where you can .