notes on implementing dynamics and pseudo code added