You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: NMPCDCBF2.m
    path of file: ./repos/NMPC-DCLF-DCBF/matlab/acc2023/benchmark/gamma1-0p6gamma2-0p6
    
    the code of the file until where you have to start completion: classdef NMPCDCBF2 < handle
    % MPC with distance constraints
    properties
        system
        params
   
    
function self = NMPCDCBF2(x0, system, params)
            % Define MPC_CBF controller
            self.x0 = x0;
            self.x_curr = x0;
            self.system = system;
            self.params = params;
        end