Discrete-event modelling of Flexible Manufacturing Systems