Adding an example illustrating linear and cubic splines