An Introduction to System Dynamics