Functions and modelling MS

Functions and modelling MS