Introduction to the Theory of Complex Systems