Writing snap stress functions.
Added example graph.