stress_history=[200, -164.512002564, 168.796458347, -132.193289839, 226.979881254, -148.835180673, 164.379380241, -154.575616652, 235.471791762, -152.689115886, 199.43323931, -145.069824287, 184.382017864, -138.879696381, 159.777544343, -129.183570943, 168.36942621, -173.553864849, 179.863382191, -153.704738698, 240.601425282, -125.109340364, 203.554241569, -151.104869105, 151.879212623, -189.695885584, 199.377744693, -195.329623345, 212.012727554, -195.75370749, 225.674699546, -110.902918849, 241.62259752, -106.007563129, 153.812420749, -114.96690783, 163.783937646, -143.146587423, 215.535550915, -164.341090709, 181.239440682, -143.630123211, 230.19122297, -135.806266193, 245.367363466, -115.405169352, 209.585157926, -196.705901264, 212.033277268, -140.411732089, 169.389048263, -113.456085567, 249.719044306, -191.435759279, 153.429767394, -116.767551736, 242.41451575, -168.994027309, 206.777246519, -131.051715494, 186.51376179, -176.793118404, 177.835483092, -133.973887892, 249.643604809, -100.745724545, 162.876672188, -138.723288571, 237.803008872, -186.763065219, 240.90597778, -143.254878382, 242.954800675, -163.852256592, 215.081626676, -131.288706509, 243.606682315, -121.776632035, 154.963184789, -180.426581346, 216.938940913, -164.716115333, 154.352353497, -148.203206146, 185.559148669, -115.488155951, 193.980184075, -156.895383734, 151.392803226, -117.248911321, 204.770980848, -142.615109734, 156.778010636, -181.449979776, 193.165866008, -165.440652674, 194.258706295, -190.240477765, 225.049161112, -118.575316232, 186.074026627, -109.713033672, 204.264469504, -189.548201129, 199.64545152, -196.531960056, 248.287629185, -148.329253005, 220.602967777, -188.148510642, 210.819270579, -150.001519163, 205.79296846, -149.063480718, 239.203655754, -174.427714435, 229.81530768, -188.154423371, 205.408171487, -111.386666969, 170.898337145, -161.658549118, 224.126035601, -138.462771217, 152.355447807, -158.493446531, 238.88935911, -152.079808427, 204.664245268, -164.70806619, 246.932163862, -180.261911567, 193.3836854, -176.917311367, 203.158142416, -147.291284369, 201.503597582, -197.425335512, 226.726753646, -182.877247188, 241.368681119, -139.365605955, 239.721281874, -136.415627373, 217.193581975, -165.189663951, 239.074073888, -103.749449605, 150.330323466, -144.834859594, 176.193983748, -187.939840431, 231.330465447, -197.961421247, 220.135424984, -149.915976694, 161.514497944, -186.731628064, 179.112893597, -195.598044433, 180.891772515, -178.808012048, 219.209283799, -179.214650803, 164.972959854, -165.449643417, 171.780146869, -125.617072101, 162.66945906, -147.999318142, 235.762073217, -119.123032796, 208.923011896, -117.605060913, 154.335814841, -179.426203991, 221.528400526, -167.420026828, 163.784941171, -148.689186199, 204.513327292, -148.643821785, 170.398515098, -165.486325386, 224.673450758, -194.212194029, 151.357547785, -102.296407108, 179.337692994, -124.207850242, 174.89456133, -102.451472806, 157.148273855, -188.832923361, 235.508899211, -118.839852519, 177.631844316, -150, 200];