finished variation of parameters in sim2 chapter