Try this:
class Information:
def __init__ (self,first,last,pay):
self.first = first
self.last = last
self.pay = pay
def __str__(self):
return self.first + " " + self.last + " will get " + str(self.pay)
def extra(self, value):
print("adding bonus of ", value)
self.pay += value
emp1 = Information("tom","jerry",555666)
print(emp1)
emp1.extra(111)
print(emp1)