Modelling Complex Systems with Statistical Mechanics: The Computational Approach