Use of functions in modelling (#23)