Adding intervals and modifying the structure of the splines classes.