Add part of the dynamics computation in chapter 3.