modelling complex systems with statistical mechanics: the computaional approach