section creating the diagram written