What is dynamics and what is the function of dynamics?