SMS: Foundations of complex systems