System Dynamics. Theory and Exercises