Development of the matlab code to model flexibility on leaf springs