Function sumDynamics. The old way of creating difference equations is deprecated now.