Added stress calculation to the example