I seem to be making a stupid mistake that I cant find. Im simply trying to call my functions from my record class and having an invalid syntax error despite looking at sample code and trying to emulate the syntax.

Ive tried following tutorials and calling the function in every which way so the problem may not be in the calling of the function but something else I feel.

class definitions
=================

```
class record:

    def __init__(self,telephone,lastname,firstname):
        self.telephone = telephone
        self.lastname = lastname
        self.firstname = firstname

    def addrecord(self,x,y,z):
        x = input('Enter telephone number')
        y = input('Enter lastname')
        z = input('Enter firstname')
        phonebook.append(record(x,y,z))
        return

    def deleterecord(self,x):
        phonebook[x-1].pop
        return

```

Main
====

```
phonebook = record[]
addrecord(515,'fin','matt')
print(phonebook[0].firstname)
deleterecord(1)
print(phonebook[0].firstname)

```

If all this works I expect the output to be
"matt"
"null"