A class of cubic splines obtained through minimum conditions