def METHOD_NAME(self,data):
    new_node = Node(data)
    if self.head == None :
        self.head = new_node
    else: 
        n = self.head
        while n.ref!=None:  # we are using this while loop to go to the last node
            n = n.ref
        n.ref = new_node