configured tikz diagram
added flow diagram