Modeling and stability analysis of a sliding bead from a problem based learning perspective