Implementing testDynamics.cpp