stress_history=[200, -166.670797891, 236.285494583, -199.233795547, 240.813888473, -157.966648153, 191.743430011, -170.228860579, 217.738883331, -192.36917969, 173.571095002, -143.796034436, 245.624875951, -199.911102334, 245.378377977, -183.392855421, 162.697794241, -197.332973401, 214.171849965, -154.273161549, 202.797853485, -180.807326196, 236.499400647, -147.717672941, 185.046263661, -135.306368503, 210.98042433, -191.899411316, 154.160737019, -124.055074897, 154.019303022, -131.443593343, 177.620597448, -115.374080561, 201.629330376, -119.704180395, 218.183297877, -195.244455686, 159.016192087, -147.078400632, 217.764416103, -107.857533396, 170.970450124, -117.529163701, 242.105584286, -156.218551247, 214.057832441, -176.198702782, 165.844771722, -126.090899535, 172.53240132, -121.738576012, 152.877919652, -158.38772099, 164.396596993, -164.167599251, 185.085777525, -165.37841302, 218.436129637, -175.860084832, 166.673250448, -148.74857546, 194.510273973, -148.827069248, 196.054355774, -188.171392735, 156.34446301, -101.653065191, 206.131447488, -105.769124158, 154.711163254, -143.253283591, 220.793671174, -181.819076123, 157.373169882, -122.198627222, 206.165456404, -142.318237476, 248.512739289, -130.548627417, 187.22994744, -162.467667771, 215.286694575, -195.368497263, 150.857706922, -126.476489032, 227.775871797, -170.250506668, 237.789609312, -176.906614978, 172.012241638, -171.422334297, 238.575596159, -146.66634491, 215.843065221, -119.890860989, 194.604983755, -105.257285975, 237.862793216, -176.924999015, 215.063996377, -117.780576176, 209.403117066, -155.257156432, 214.921177284, -103.772580693, 153.00346736, -141.247668413, 206.998883746, -132.218666954, 176.30835567, -157.744895221, 180.813487744, -193.061195487, 200.313709361, -159.811561455, 164.134853932, -180.597896959, 198.506943081, -104.736880377, 205.754522379, -172.465101438, 171.901665645, -194.844702149, 206.225434928, -161.386683675, 233.272818833, -107.996733071, 182.766707356, -105.008532348, 225.352687049, -152.147297681, 162.287592919, -149.675777392, 190.281566225, -190.027717659, 210.801472531, -157.513046013, 204.154189399, -125.587908791, 158.856438386, -133.440889763, 243.768751795, -197.992900406, 217.863666019, -130.178610839, 237.658799067, -175.652887824, 186.504576919, -108.394882088, 153.725706657, -197.456463892, 182.594415508, -125.952479734, 170.329521866, -107.156877335, 206.606129129, -138.671335353, 179.837665476, -155.31076704, 174.418329213, -143.710073725, 172.76269016, -152.35263022, 189.336645037, -181.874972266, 196.742092639, -149.63954748, 189.04128465, -123.153203669, 208.212164957, -190.971198369, 166.40533147, -167.228851607, 150.494422903, -112.553255653, 206.209722833, -123.182802222, 169.434189312, -193.0926257, 219.107517595, -191.207751824, 236.828636269, -175.085801471, 233.656919377, -104.571071711, 208.122937475, -199.118076109, 196.217402391, -185.048913044, 159.328519186, -163.924013406, 184.016315342, -178.031477146, 163.632419777, -157.298316306, 209.416762106, -150, 200];