Adding a diagram and listing it