Add Example 5 to "diagram_examples"
Update 'stopifnot' statement