CS166 Modeling and Simulation of Complex Systems