class Contacts:
    current_id = 1

    def __init__(self):
        self.contacts = []

    def list_contacts(self):
        return self.contacts
        

    def add_contacts(self, name, phone, email, favorite):
        cd = {"id": Contacts.current_id, "name":name, "phone":phone, "email":email, "favorite": favorite}
        Contacts.current_id += 1
        self.contacts.append(cd)

        