stress_history=[200, -168.517132989, 156.701106963, -192.099874714, 170.972828012, -103.810814436, 152.957918946, -110.424946193, 213.895435364, -145.955433807, 151.13914637, -161.455922444, 223.285686156, -117.471824052, 219.138548179, -153.893282239, 249.687533843, -142.207149845, 244.485547576, -107.933906429, 213.101252566, -116.755396098, 192.021680954, -135.614598239, 244.470120057, -142.565888161, 198.798630779, -123.965612887, 224.514988, -198.204073217, 233.43554639, -170.807970399, 164.936135128, -150.403888393, 186.208765198, -193.200039134, 229.672706404, -152.832471963, 179.523498956, -195.372812445, 228.655088375, -178.960799907, 164.517944486, -199.417888507, 222.514228832, -136.142805235, 153.691763177, -113.591427841, 237.182026871, -139.845161888, 232.032094967, -135.937397899, 222.619936185, -113.405128066, 163.946224222, -198.257904937, 181.207618479, -153.104487177, 183.141157024, -120.330458523, 190.249912834, -126.318786808, 182.997317879, -107.075180971, 156.934084346, -139.650086167, 229.651668791, -117.7201913, 154.420717909, -150.041668289, 241.52101142, -109.455376997, 202.715766498, -120.881699882, 179.177685682, -173.340842792, 211.117198269, -129.394693681, 244.318524735, -132.902649931, 174.606429078, -133.484004508, 228.089305208, -182.610551604, 220.989565623, -185.752444223, 200.951192802, -192.889017868, 202.620813547, -150.994266468, 196.122378588, -170.628977247, 189.056125498, -162.954060373, 206.715049874, -135.185291427, 232.682877055, -159.168153515, 234.284196096, -161.807297081, 196.122782612, -143.82903653, 200.971975102, -117.102814285, 175.972624797, -172.153244367, 178.841190045, -168.037403727, 178.924272656, -179.955912972, 168.329054774, -108.823998323, 216.74690449, -189.88029357, 186.349777585, -185.548120411, 193.834774422, -165.208108373, 175.614158516, -125.2857525, 206.322570285, -188.787653901, 151.366966463, -128.752910602, 202.959902323, -161.615362578, 198.367869313, -110.205071038, 231.095121071, -177.586270026, 152.786147534, -158.970991725, 192.404315205, -102.825229202, 248.436671512, -166.016424197, 214.320510226, -185.741906309, 248.530636085, -128.51410895, 151.060059212, -137.549311179, 210.77912829, -126.977215037, 232.420364569, -119.938979411, 212.059371078, -145.138764186, 212.610928799, -139.106511212, 221.373114314, -177.680765953, 161.664728291, -170.849177839, 239.830054548, -138.055350832, 197.237179937, -129.601862201, 171.078050106, -148.424239899, 151.685487447, -163.115754848, 219.69155333, -168.372091713, 215.9107143, -157.821253873, 162.013274321, -195.452740511, 172.230239393, -177.217831203, 180.345637385, -109.847834262, 164.110270898, -157.192892968, 237.004711186, -182.422178397, 216.942492013, -188.04617025, 189.465387155, -154.689424329, 164.838375013, -119.592705826, 190.231855834, -132.422998142, 171.69710582, -140.647718609, 222.421458207, -120.90986796, 240.09358668, -139.451515556, 235.642746205, -170.920111399, 208.615920147, -151.104182648, 217.086981945, -183.303672, 215.074527721, -150, 200];