class Person:
    def __init__(self,name,age,pay=0,job=None):
        self.name=name
        self.age=age
        self.pay=pay
        self.job=job
    def lastName(self):
        return self.name.split()[-1]
    def giveRaise(self,percent):
        self.pay*=(1.0+percent)

if __name__=="__main__":
    bob = Person('bob smith', 42, 30000, 'software')
    sue = Person('sue jones', 42, 40000, 'hardware')
    print(bob.name, sue.pay)
    print(bob.lastName())
    sue.giveRaise(0.8)
    print(sue.pay)