Create two types of diagrams.