added pausing example