<s>[INST] class Record:
    def __init__(self, name, data):
        self.name = name
        self.data = data

class Dictionary:
    def __init__(self):
        self.records = []

    def add_record(self, record):
        self.records.append(record)

    def get_record_by_name(self, name):
        for record in self.records:
            if record.name == name:
                return record
        return None

    def update_record(self, name, new_data):
        record = self.get_record_by_name(name)
        if record:
            record.data = new_data
            return True
        return False

    def delete_record(self, name):
        record = self.get_record_by_name(name)
        if record:
            self.records.remove(record)
            return True
        return False[/INST]