stress_history=[200, -133.365852656, 189.004368959, -106.202575971, 203.868856382, -109.668208582, 202.314586228, -149.478471528, 218.976940586, -102.121126006, 212.797612124, -106.61352568, 154.400794595, -128.186005614, 181.759794937, -155.970291189, 209.075351745, -127.787091615, 153.718373741, -166.473124383, 175.311767958, -168.695273463, 213.121111292, -186.744172709, 208.719063259, -147.964870749, 173.176809431, -183.573696185, 242.133016448, -198.156107793, 246.131492101, -196.173094641, 230.510652299, -114.021560105, 231.088235774, -104.456587559, 157.910409473, -127.046562691, 202.802254035, -129.534729161, 192.725137765, -197.213341768, 220.155844363, -112.161273489, 219.997856017, -160.123323532, 241.756146452, -152.135048562, 244.616521134, -141.950644077, 238.106293693, -116.884338716, 186.602467861, -176.09792898, 168.091374656, -100.360396031, 221.808820339, -153.126039891, 218.590529965, -134.898040803, 216.967965992, -160.135639161, 204.437094561, -126.505407828, 155.300842246, -172.355951073, 213.199245633, -117.484598172, 248.728435546, -191.911420572, 160.003074317, -132.08333181, 228.162185492, -104.562578654, 178.438285824, -183.910941961, 249.279511416, -161.546388519, 200.666910042, -185.330546011, 163.761136135, -123.76969056, 172.138142378, -183.700931542, 191.510524019, -162.149612528, 198.641952155, -148.627269821, 166.491992228, -184.89016814, 211.262851749, -141.622964597, 150.797634155, -173.443330361, 203.549732692, -116.316289871, 243.7058016, -180.629773365, 249.905394628, -172.78019181, 219.222410731, -100.5770425, 206.631469671, -165.498272936, 201.001576556, -103.470574032, 162.22244669, -136.560305325, 236.692090393, -176.54247104, 184.972254518, -197.092637808, 181.651720919, -134.758377088, 247.89421985, -120.392469607, 176.926446189, -164.001807981, 187.057647291, -195.854322792, 166.974840706, -159.559080968, 202.859857812, -118.269569405, 231.097153287, -120.899632382, 222.939374804, -124.795747171, 216.719258258, -179.684452024, 195.641055637, -119.934673733, 165.607214221, -158.109650734, 186.026947691, -160.072426505, 222.189705202, -142.858716611, 221.604913524, -164.574706505, 170.180668822, -190.424168918, 239.702858304, -161.529323021, 183.722020891, -120.353174037, 226.682702148, -170.191726198, 165.200179838, -181.089954086, 157.483485767, -164.212744866, 165.876285759, -191.851240964, 193.212775974, -119.369804255, 229.233114022, -134.343799963, 188.045849024, -151.923198131, 215.453447199, -103.364902134, 211.907086859, -112.294537156, 184.67883587, -186.92679, 204.617190188, -113.691374445, 242.904191832, -144.598270827, 213.182824706, -128.759657776, 178.283639771, -197.781259675, 172.374353746, -142.864352371, 215.68211794, -183.435823449, 172.257217714, -150.777717472, 166.475682298, -163.158327799, 167.99769051, -138.486031645, 176.934838512, -143.697054779, 197.438536479, -119.593652694, 206.250052659, -176.330181635, 245.054616288, -155.763069964, 157.792347142, -121.643475247, 227.794272339, -149.443976132, 246.943139658, -150, 200];